<template>
  <div id="app">
    <FsmCustShape v-if="showedDemo == 'custShape'" />
    <FsmHover v-if="showedDemo == 'hover'" />
    <Fsm msg="FSM Graph" v-if="showedDemo == 'basic'" />
    <Demo1 />
    <Demo2 />
    <img alt="Vue logo" src="./assets/logo.png" />
    <!-- <HelloWorld msg="Welcome to Your Vue.js App" /> -->
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import Fsm from './components/Fsm.vue'
import FsmHover from './components/FsmHover.vue'
import FsmCustShape from './components/FsmCustShape.vue'
import Demo1 from './components/d3/Demo1.vue'
import Demo2 from './components/d3/Demo2.vue'

export default {
  name: 'App',
  components: {
    // HelloWorld,
    Fsm,
    FsmHover,
    FsmCustShape,
    Demo1,
    Demo2,
  },
  data() {
    return {
      // 多个组件在一个页面可能会冲突
      // showedDemo: 'custShape',
      // showedDemo: 'hover',
      showedDemo: 'basic',
    }
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
